﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using YasharEl.Infrastructure.ApplicationModel.Prism;

namespace RemoteTranslator.AssistentApplication.Launcher
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public App()
        {
            /* Intentionally left blank. */
        }

        private void Application_Startup(object sender, StartupEventArgs e)
        {
            /* This causes log4net to initalise. 
                * We need this for the ClientLogging library 
                * to be able to log using log4net. 
                * It triggers reading the config etc. [DV] */
            //log4net.Config.XmlConfigurator.ConfigureAndWatch(new FileInfo("Log4Net.config"));

            //Log.Info("Client starting.");
            var starter = new AppStarter { StartupOptions = { SplashBlurbVisible = false } };

            //starter.StartupOptions.ModuleCatalogOptions.ExcludedModules.Add(ModuleNames.OutputDisplay);
            //starter.StartupOptions.ModuleCatalogOptions.ExcludedModules.AddRange(ModuleNames.DefaultModuleNames);
            //starter.StartupOptions.SplashImagePackUri = new Uri("pack://application:,,,/YasharEl.Infrastructure.PresentationModel.Prism;component/Resources/Images/WpfDisciplesBanner.jpg");
            //starter.StartupOptions.SplashBlurbVisible = false;
            starter.Start();
        }
    }
}
